class textcacheGL : public textcache
{
public:
textcacheGL();
~textcacheGL();
unsigned *tex;
void init(int np,picture **pic);
int add_picture(int sx,int sy,int bytespixel,unsigned char *buf);
void update_picture(int picnum,int sx,int sy,int bytespixel,unsigned
char *buf);
void update_sub_picture(int picnum,int x,int y,int sx,int sy,int
bytespixel,unsigned char *buf);
inline void use(int pic=-1,int textunit=0);
inline void use_triangles(int pic=-1,int textunit=0);
};
Member | Type | Description |
---|---|---|
tex | unsigned * | the OpenGL texture handles |
add_picture, update_picture, update_sub_picture, use, use_triangles, init
This class is the OpenGL implementation sub-classed from the textcache
base class.
Use the flyEngine init_texture_cache and free_texture_cache to
initialize and free the global variable tc that is the main interface to
this class.